<template>
  <div class="UTimePicker">
    <el-time-picker
      @input="input"
      :value="formValue"
      v-bind="$attrs"
    ></el-time-picker>
  </div>
</template>

<script>
export default {
  name: 'UTimePicker',
  props: {
    formValue: {
      type: String | Array,
      default: () => ''
    }
  },
  methods: {
    input(val) {
      this.$emit('update:formValue', val);
      this.$emit('change', val);
    }
  }
};
</script>

<style lang="scss" scoped></style>